Skip to content

DOC-4423: add TCEs for various command pages #2885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

dwdougherty
Copy link

Description

Tabbed code examples (TCEs) for various command pages. Please merge as soon as possible.


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

@vladvildanov
Copy link

@dwdougherty Is it okay that tests are failing?

@dwdougherty
Copy link
Author

dwdougherty commented Jan 17, 2025

Hi @vladvildanov. I can see that one of the tests, cmds-cnxmgmt.js, is returning error code 13. No idea why. Can somebody help me? I'm not a JavaScript programmer, so I have limited knowledge of what might be going on.

@nkaradzhov nkaradzhov self-assigned this Apr 22, 2025
nkaradzhov and others added 3 commits April 22, 2025 15:48
from redis docs for ACL DELUSER:
Delete all the specified ACL users and terminate all the connections
 that are authenticated with such users

Nodejs complains: Warning: Detected unsettled top-level await
which in turn gives the error code 13 in the workflow

await client.auth({ username: 'test-user' ...});
// deleting the user that is currently logged in -> bad
await client.sendCommand(['ACL', 'DELUSER', 'test-user']);
await client.quit()

fix: authenticate with the default user before deleting the test-user
Doc 4423 tces for cmd pages - fix problematic doctest
@nkaradzhov nkaradzhov self-requested a review April 22, 2025 13:29
Copy link

@nkaradzhov nkaradzhov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elena-kolevska elena-kolevska merged commit cb26059 into redis:emb-examples Apr 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants